package com.gnerv.sylvanas.business.manage.service.impl;

import com.gnerv.sylvanas.business.manage.constants.SystemConfigProperties;
import com.gnerv.sylvanas.business.manage.service.VerifyService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

/**
 * @author Gnerv LiGen
 */
@Slf4j
@Service
@AllArgsConstructor
public class BaseVerifyService implements VerifyService {

    @Override
    public boolean verify(String attribute, Object value) {
        return false;
    }

    public boolean ukId(String ukId) {
        if (StringUtils.hasText(ukId) && ukId.length() == SystemConfigProperties.UK_ID_LENGTH) {
            return true;
        }
        return false;
    }

}
